<ion-view view-title="加盟店订单一览">
	
	 <ion-content>
       <div  class="list" id="disorder-top1">
       	   <li class="item item-divider" >
       	   	加盟店：{{data.store_name}}
       	   </li>
       	  <li class="item item-input">
       	   	订单号：
       	   	<input type="text" placeholder="请输入订单号" ng-model="scope.number"/>
       	   </li>
       	    <li class="item item-input">
       	   	商品名：
       	   	<input type="text" placeholder="请输入商品名" ng-model="scope.name"/>
       	   </li>
       	    <li class="item item-input" ion-datetime-picker title="'请输入开始时间'" ng-model="input.start_date">
				<span class="input-label">开始时间：</span>
				<input type="text" placeholder="请输入开始时间" class="timeLight" ng-class="{'timeNoneInfo':input.start_date}">{{input.start_date| date: "yyyy-MM-dd H:mm:ss"}}</input>
			</li>
			<li class="item item-input" ion-datetime-picker title="'请输入结束时间'" ng-model="input.end_date">
				<span class="input-label">结束时间：</span>
				<input type="text" placeholder="请输入结束时间" class="timeLight" ng-class="{'timeNoneInfo':input.end_date}">{{input.end_date| date: "yyyy-MM-dd H:mm:ss"}}</input>
			</li>
       	    <li class="item item-input">
				  订单状态：
				  <div class="input-value" ng-click="doSelectType()">{{scope.type_select.name}}</div>
       	   	<button class="button button-small button-assertive col-25 col-offset-3" on-tap="search()">搜索</button>
       	   </li>
       	   <!--<li class="item item-input item-input-inset item-icon-right">
 			   	  	 <label class="item-input-wrapper">
 			   	  	  <input type="text"/>
 			   	  	 </label>
 			   	  	 <i class="icon ion-search font-1rem-my"></i>
 			</li>-->
       	    <li class="item item-divider">
       	    	查找到<label class="assertive">{{order_count}}</label>个订单，金额<label class="assertive">{{order_money|currency:'￥'}}</label>元
       	    </li>
       </div>
		<ion-scroll direction="y" ng-style="disorder_myObj" lazy-scroll>
		<!--描述：下拉刷新-->
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="margin-bottom-10" ng-repeat="num in data.order" >
				<!-- 循环div -->
				<li class="item  item-borderless " style="padding: 6px 0 5px 16px;">
					订单号：<span  >{{num.id}}</span>
					<span class="button button-small  button-positive  " style="width: 20%;float: right;" on-tap="show_detail(num.id,num.store_id)">详情</span>
				</li>
				<li class="item item-input item-borderless" >
					买家：<span  >{{num.buyer_name}}</span>
				</li>
				<li class="item item-input item-borderless">
					订单类型：<span>{{num.order_type}}</span>
				</li>
				<li class="item item-borderless item-input">
					数量：{{num.count}}件 <span class="margin-left-10-my">金额：<span class="assertive">{{num.total_amount|currency:'￥'}}</span>元</span>
					
				</li>
				
			</div>
				<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-scroll>
	 </ion-content>
</ion-view>
